home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
SOURCE
/
STRINGIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
596b
|
31 lines
/* Chapter 9 - Program 5 - STRINGIN.C */
#include "stdio.h"
void main()
{
char big[25];
printf("Input a character string, up to 25 characters.\n");
printf("An X in column 1 causes the program to stop.\n");
do {
scanf("%s", big);
printf("The string is -> %s\n", big);
} while (big[0] != 'X');
printf("End of program.\n");
}
/* Result of execution
Input a character string, up to 25 characters.
An X in column 1 causes the program to stop.
(The output depends on what you type in.)
End of program.
*/